package Logic;

import microgame.toolset.datatable.DataTable;
import microgame.toolset.datatable.DataTableManager;
import microgame.toolset.datatable.Row;

import java.util.ArrayList;

public class PropDataTemplate {
    private static PropDataTemplate instance;
    private ArrayList<Row> allRows;

    public static PropDataTemplate Instance() {
        if (instance == null) {
            instance = new PropDataTemplate();
        }
        return instance;
    }

    public void Init() {
        DataTable table = DataTableManager.Instance().GetDataTable("prop");
        allRows = table.GetAllRows();
    }

    public ArrayList<Row> GetAllPropTemplate() {
        return allRows;
    }
}
